package com.wans.guli.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wans.guli.common.utils.PageUtils;
import com.wans.guli.product.entity.BrandEntity;
import com.wans.guli.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author wans
 * @email wansconst@163.com
 * @date 2025-08-01 15:14:35
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryBrandRelationEntity> queryPageByBrandId(Long brandId);

    void saveCategoryBrand(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 根据分类id查询品牌
     * @param catId 分类id
     * @return  品牌
     */
    List<BrandEntity> listBrands(Long catId);
}

